home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hobby PC 13
/
Hobby PC 13.iso
/
assets
/
Asset Library
/
Images
/
Mouseover Buttons
/
For Any Dark Background
/
blueplastic
/
fxitems.xml
< prev
next >
Wrap
Extensible Markup Language
|
2001-04-09
|
6KB
|
80 lines
<?xml version="1.0" standalone="yes"?>
<Items>
<Template>
<Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
<Icon SRC="%Filename%"/>
<Icon2 SRC="%Filename%"/>
<Description>%ASK:Description:%{Button ALT Text}</Description>
<Filename SRC="%Filename%"/>
<Filename2 SRC="%Filename%"/>
<SCRIPT LANGUAGE="JScript"><![CDATA[
var src, src2, dest, attr, attr2, dst2, dst;
src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
function buildpath()
{
if (ActiveDocument.InCurrentProject)
{
dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
}
else
{
dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = "images/buttons/default/%Filename%";
attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
}
}
function dropfxnow()
{
Application.FX.CopyFile(src, dst);
Application.FX.CopyFile(src2, dst2);
Application.FX.SelectDropPoint();
AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
Application.FX.ShowDialog('ANCHOR');
}
// First, check if the file is saved
if (ActiveDocument.Path != "")
{
buildpath();
dropfxnow();
}
else
{
ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
if (ans == 1)
{
ActiveDocument.SaveAs();
}
if (ActiveDocument.Path != "") //check again if they did indeed save and name file
{
buildpath();
dropfxnow();
}
}
]]>
</SCRIPT>
</Item>
</Template>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbattn"><Icon SRC="td_tbattn.gif"/><Icon2 SRC="(td)tbattn.gif"/><Description>Attention</Description><Filename SRC="td_tbattn.gif"/><Filename2 SRC="(td)tbattn.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbcautio"><Icon SRC="td_tbcautio.gif"/><Icon2 SRC="(td)tbcautio.gif"/><Description>Caution</Description><Filename SRC="td_tbcautio.gif"/><Filename2 SRC="(td)tbcautio.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbdown"><Icon SRC="td_tbdown.gif"/><Icon2 SRC="(td)tbdown.gif"/><Description>Down</Description><Filename SRC="td_tbdown.gif"/><Filename2 SRC="(td)tbdown.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbemail"><Icon SRC="td_tbemail.gif"/><Icon2 SRC="(td)tbemail.gif"/><Description>Email</Description><Filename SRC="td_tbemail.gif"/><Filename2 SRC="(td)tbemail.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbgoback"><Icon SRC="td_tbgoback.gif"/><Icon2 SRC="(td)tbgoback.gif"/><Description>Go Back</Description><Filename SRC="td_tbgoback.gif"/><Filename2 SRC="(td)tbgoback.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbhelp"><Icon SRC="td_tbhelp.gif"/><Icon2 SRC="(td)tbhelp.gif"/><Description>Help</Description><Filename SRC="td_tbhelp.gif"/><Filename2 SRC="(td)tbhelp.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbhome"><Icon SRC="td_tbhome.gif"/><Icon2 SRC="(td)tbhome.gif"/><Description>Home</Description><Filename SRC="td_tbhome.gif"/><Filename2 SRC="(td)tbhome.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbnext"><Icon SRC="td_tbnext.gif"/><Icon2 SRC="(td)tbnext.gif"/><Description>Next</Description><Filename SRC="td_tbnext.gif"/><Filename2 SRC="(td)tbnext.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbprev"><Icon SRC="td_tbprev.gif"/><Icon2 SRC="(td)tbprev.gif"/><Description>Previous</Description><Filename SRC="td_tbprev.gif"/><Filename2 SRC="(td)tbprev.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tbup"><Icon SRC="td_tbup.gif"/><Icon2 SRC="(td)tbup.gif"/><Description>Up</Description><Filename SRC="td_tbup.gif"/><Filename2 SRC="(td)tbup.gif"/></Item>
</Items>